//
//  ZDBAspectFitImageView.m
//  ZDB
//
//  Created by Kk on 2020/3/29.
//  Copyright © 2020 ZDB. All rights reserved.
//

#import "ZDBAspectFitImageView.h"

@implementation ZDBAspectFitImageView

- (CGSize)intrinsicContentSize {

    CGSize s =[super intrinsicContentSize];

    s.height = self.frame.size.width / self.image.size.width  * self.image.size.height;

    return s;

}

@end
